<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{commons :: top_head(~{::title})}">
    <title>关于我</title>
</head>
<body>
<!--导航栏-->
<nav th:replace="~{commons :: top_nav_bar(4)}"></nav><!--中间内容-->
<!--中间内容-->
<div class="cus-padding-top-bottom-massive">
    <div class="ui container">
        <!--        头部，显示标题和多少个分类-->
        <div class="ui top attached padded segment">
            <div class="ui middle aligned two column grid">
                <div class="column">
                    <div class="ui teal header">
                        归档
                    </div>
                </div>
                <div class="right aligned column">
                    共 <span class="ui orange header" th:text="${blogCount}">21</span>篇文章
                </div>
            </div>
        </div>

        <th:block th:each="item:${archiveMap}">
            <h2 class="ui center aligned header" th:text="${item.key}">2017</h2>
            <div class="ui fluid vertical attached menu" th:each="blog:${item.value}">
                <a href="#" target="_blank" class="item" th:href="@{/blog/{id}(id=${blog.id})}">
                    <span>
                       <i class="iconfont teal icon-B icon"></i>
                        <span th:text="${blog.getTitle()}">一篇文章的标题</span>
                        <div th:text="${#dates.format(blog.getUpdateTime(),'MMMdd')}"
                             class="ui teal basic left pointing label mini">9月24日</div>
                        </span>
                    <div th:text="${blog.flag}" class="ui orange basic label middle aligned">原创</div>
                </a>
            </div>
        </th:block>
    </div>
</div>
<!--底部内容-->
<footer th:replace="~{commons :: footer_nav_bar}"></footer>
</body>
</html>